package com.cloud.lan.api.manage;

import com.cloud.lan.api.dto.req.LanBadgeUserRecordReq;
import com.cloud.lan.entity.base.BaseResponse;
import com.cloud.lan.service.ILanBadgeUserRecordService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by zhouquan on 2022/5/19.
 * 徽章用户记录入口
 */
@RestController
@RequestMapping(value = {"/v1/manage/badge/user/"}, method = {RequestMethod.GET, RequestMethod.POST})
public class LanBadgeUserRecordApi {

    @Resource
    private ILanBadgeUserRecordService lanBadgeUserRecordService;

    @RequestMapping("manageList")
    public BaseResponse<Object> manageList(LanBadgeUserRecordReq req) {
        return lanBadgeUserRecordService.manageList(req);
    }

    @RequestMapping("add")
    public BaseResponse<Object> add(LanBadgeUserRecordReq req) {
        return lanBadgeUserRecordService.add(req);
    }

    @RequestMapping("update")
    public BaseResponse<Object> update(LanBadgeUserRecordReq req) {
        return lanBadgeUserRecordService.update(req);
    }

    @RequestMapping("delete")
    public BaseResponse<Object> delete(Long id) {
        return lanBadgeUserRecordService.delete(id);
    }
}
